package com.chunyu.ask.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.chunyu.ask.util.PageUtils;

/**
 * 描        述：QA快速询问入口
 * 创建时间：2016-8-19
 * @author Jibaole
 */
@Controller
@RequestMapping("/ask")
public class AskController {
	 @RequestMapping("/forwardAsk/{userId}")
		public ModelAndView forwardAsk(@PathVariable int userId) {
			ModelAndView view = new ModelAndView(PageUtils.ASK_LINK);
			try {
				view.addObject("userId", userId);
				view.addObject("ask", "存放用户信息");
			} catch (Exception e) {
				e.printStackTrace();
			}
			return view;
		}
}
